package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 广告对象 shop_ad
 * 
 * @author Alan Zhang
 * @date 2021-09-12
 */
public class ShopAd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 广告ID */
    private Long id;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderNumber;

    /** 类型 1图片 2视频 */
    @Excel(name = "类型 1图片 2视频")
    private Integer mediaType;

    /** 广告名称 */
    @Excel(name = "广告名称")
    private String name;

    /** 链接 */
    @Excel(name = "链接")
    private String link;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageUrl;

    /** 广告内容 */
    @Excel(name = "广告内容")
    private String content;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 启用状态 0停用 1启用 */
    @Excel(name = "启用状态")
    private Integer enabled;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNumber(Integer orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public Integer getOrderNumber() 
    {
        return orderNumber;
    }
    public void setMediaType(Integer mediaType) 
    {
        this.mediaType = mediaType;
    }

    public Integer getMediaType() 
    {
        return mediaType;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLink(String link) 
    {
        this.link = link;
    }

    public String getLink() 
    {
        return link;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setEnabled(Integer enabled) 
    {
        this.enabled = enabled;
    }

    public Integer getEnabled() 
    {
        return enabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("mediaType", getMediaType())
            .append("name", getName())
            .append("link", getLink())
            .append("imageUrl", getImageUrl())
            .append("content", getContent())
            .append("endTime", getEndTime())
            .append("enabled", getEnabled())
            .toString();
    }
}
